<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">

<Frame name="MinimapButtonFrame" toplevel="true" parent="UIParent" movable="true" clampedToScreen="true" hidden="false" frameStrata="MEDIUM">
	<Size x="20" y="20"/>
	<Anchors>
		<Anchor point="CENTER"/>
	</Anchors>
  <Backdrop bgFile="Interface/Tooltips/UI-Tooltip-Background" edgeFile="Interface/Tooltips/UI-Tooltip-Border" tile="true">
	<EdgeSize>
		<AbsValue val="16"/>
	</EdgeSize>
	<TileSize>
		<AbsValue val="16"/>
	</TileSize>
	<BackgroundInsets>
		<AbsInset left="5" right="5" top="5" bottom="5"/>
	</BackgroundInsets>
  </Backdrop>
  <Frames>
	<Button name="$parentDragButton" inherits="UIPanelButtonTemplate">
		<NormalTexture name="MBFDragNormal"/>
		<PushedTexture name="MBFDragPushed"/>
		<Size>
			<AbsDimension x="75" y="25"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT"><Offset><AbsDimension x="0" y="27"/></Offset></Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				if (IsShiftKeyDown()) then						
					MBFC_Toggle();
				elseif ( button == "RightButton" ) then
					MBFC_RollUp(1);
				end
			</OnClick>
			<OnMouseDown>
				if (button == "LeftButton") then
					MBF:OnDragStart();
				end
			</OnMouseDown>
			<OnMouseUp>
				if (button == "LeftButton") then
					MBF:OnDragStop();
				end
			</OnMouseUp>
			<OnEnter>
				RollUp_OnEnter(1);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
	</Button>
	<Button name="MiniMapMailFrameDisabled" hidden="true">
		<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
		<DisabledTexture file="Interface\Minimap\UI-Minimap-ZoomOutButton-Disabled"/>
		<Size>
			<AbsDimension x="33" y="33"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BORDER">
				<Texture name="$parentNoMail" file="Interface\Icons\INV_Letter_15">
					<Size>
						<AbsDimension x="18" y="18"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="7" y="-6"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentBorder" file="Interface\Minimap\MiniMap-TrackingBorder">
					<Size>
						<AbsDimension x="52" y="52"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				SetDesaturation(getglobal("MiniMapMailFrameDisabledNoMail"), 1);
			</OnLoad>
			<OnEnter>
				NoMail_OnEnter();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Button>
  </Frames>
  <Scripts>
	<OnDragStart>
		MBF:OnDragStart();
	</OnDragStart>
	<OnDragStop>
		MBF:OnDragStop();		
	</OnDragStop>
  </Scripts>
</Frame>

<Frame name="MBFRestoreButtonFrame" parent="UIParent" enableMouse="true" movable="true" hidden="false" clampedToScreen="true" frameStrata="LOW">
	<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false">
	    <BackgroundInsets>
	        <AbsInset left="5" right="5" top="5" bottom="5" />
	    </BackgroundInsets>
		<TileSize>
		    <AbsValue val="10" />
		</TileSize>
		<EdgeSize>
			<AbsValue val="10" />
		</EdgeSize>	
		<Color r="1" g="0.5" b="0.5" />
	</Backdrop>
	<Size>
		<AbsDimension x="75" y="25"/>
	</Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="MinimapButtonFrame" relativePoint="TOPLEFT">
			<Offset>
				<AbsDimension x="0" y="28"/>
			</Offset>
		</Anchor>
	</Anchors>
	<Frames>
	<Button name="MBFRestoreButton" hidden="true" inherits="UIPanelButtonTemplate">
		<NormalTexture name="MBFRestoreNormal"/>
		<PushedTexture name="MBFRestorePushed"/>
		<Size>
			<AbsDimension x="75" y="25"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT"><Offset><AbsDimension x="3" y="0"/></Offset></Anchor>
		</Anchors>
		<Scripts>
			<OnClick>
				if (IsShiftKeyDown()) then						
					MBFC_Toggle();
				elseif ( button == "RightButton" ) then
					MBFC_RollUp(2);
				end
			</OnClick>
			<OnMouseDown>
				if (button == "LeftButton") then
					MBF:OnDragStart();
				end
			</OnMouseDown>
			<OnMouseUp>
				if (button == "LeftButton") then
					MBF:OnDragStop();
				end
			</OnMouseUp>
			<OnEnter>
				RollUp_OnEnter(2);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
	</Button>
	</Frames>
</Frame>
</Ui>